			
            <div id="title-bar">
                <div id="element-count">
                    <div id="info-element">
                        <div class="number"><?php echo $countcontact;?></div>
                        <span>liên hệ</span>
                    </div>
                    <div id="img-element">
                    	<div class="nav-icons ico-contact"></div>
                    </div>
                </div>
                <h2 id="title-page"><?php echo $action["display_name"]?></h2>
            </div>
            <div class="row-fluid">
            	<?php if(isset($textkeysearch)):?>
                
                <h4>
                	CÓ <?php echo ($listcontacts)?count($listcontacts):0;?> KẾT QUẢ ĐƯỢC TÌM KIẾM TỪ "<em><?php echo $textkeysearch?></em>"
                    <a href="" onClick="parent.location='';return false;"><i class="icon-remove-sign"></i></a>
                </h4>
                <?php endif;?>
                
            </div>
            <div class="row-fluid">
            	<div class="span8">  
                	<!--
                	<?php echo form_open('administrator/contact/'.$action["name"],'method="get" name="form_filter"')?>
                	
                        <div class="input-group filter-group">
                        	
                            <div class="bfh-datepicker" data-format="d-m-y" data-min="<?php echo $date_start;?>" data-max="today"  data-date="<?php echo $fromdate;?>" data-name="fromdate" data-input="date-filter">
							</div>
                            
                            <div class="bfh-datepicker" data-format="d-m-y" data-min="<?php echo $date_start;?>" data-max="today" data-date="<?php echo $todate;?>" data-name="todate" data-input="date-filter"></div>
                        </div>
                    <?php echo form_close()?>
                    
                    <script type="text/javascript">
					$(document).ready(function(e) {
                        $('.filter-group .bfh-datepicker .input-group-addon').attr('rel','tooltip');
						$('.filter-group .bfh-datepicker .input-group-addon').attr('title','tooltip');
						$('.date-filter').focusout(function(){
							setTimeout(function(){
							document.form_filter.submit();
							},200);
						});
                    });
                    	
                    </script>
                    -->
                </div>
            	<div class="span4">
                	<div class="pull-right">
                 
                        <?php echo form_open('administrator/contact/'.$action["name"], 'id="formSearch" class="form-inline"') ?>
                        	<div class="input-append">
                            	<input type="text" value="<?php echo set_value('keysearch')?>" name="keysearch" id="keysearch" placeholder="Nhập từ khóa" class="input-medium" autocomplete="off" />
                                <select id="field-search" name="field_search">
                                	<option value="1" <?php echo set_select('field_search',1)?>>Tiêu đề</option>
                                    <option value="2" <?php echo set_select('field_search',2)?>>Họ tên</option>
                                </select>
                                <button class="btn">
                                	<i class="icon-search"></i>
                                </button>
                            </div>
                        <?php echo form_close() ?>
                  
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
 
                <table class="table table-striped table-bordered genaral-tables" width="100%">
                	<thead>
                    	<tr>
                        	<th width="3%">#</th>
                            <th width="36%">Tiêu đề</th>
                            <th width="17%">Họ tên</th>
                            <th width="23%">Email</th>
                            <th width="13%">Ngày gửi</th>
                            <th width="8%">Hành động</th>
                        </tr>
                    </thead>
                    <tbody>
                    	<?php if($listcontacts): foreach($listcontacts as $row){?>
                        
                        <tr rel="<?php echo $row->ConId ?>" id="table_row_<?php echo $row->ConId?>">
                            <td class="text-center stt"><?php echo $row->stt ?></td>
                            <td>
                            	<a href=""><?php echo $row->Title ?></a>
                            </td>
                            <td><?php echo $row->FullName; ?></td>
                            <td class="text-center"><?php echo $row->Email; ?></td>
                            <td class="text-center"><?php echo date('d-m-Y H:i:s', strtotime($row->Date)); ?></td>
                            <td class="table-col-action text-center">
                                <a rel="tooltip" href="<?php echo base_url('administrator/contact/detail?conid='.$row->ConId)?>" title="<?php echo ($row->Status==1)?'Trả lời':'Xem mục'?>" >
                                	<i class="<?php echo ($row->Status==1)?'icon-share-alt':'icon-eye-open'?>"></i>
                                </a> 
                                <a class="btn-delete" rel="tooltip" href="" title="Xóa mục" >
                                	<i class="icon-remove"></i>
                                </a>
                            </td>
                        </tr>
                       
                        <?php } else: ?>
                        
                        <tr>
                            <td class="text-center" colspan="7">
                                Không có mục nào được tìm thấy
                            </td>
                        </tr>
                       	<?php endif;?>
                        
                        <tr>
                            <td class="tableFooter" colspan="7">
                            	
                            </td>
                        </tr>
                    </tbody>
       			</table>
      